package vo;

import lombok.Data;

@Data
public class result {
    private String msg;
    private int code;
    private Object data;

    public static result success(Object data){
        result result = new result();
        result.setCode(200);
        result.setMsg("成功");
        result.setData(data);
        return result;
    }

    public static result failed(Object data){
        result result = new result();
        result.setCode(500);
        result.setMsg("失败");
        result.setData(data);
        return result;
    }

}
